package com.lagou.pojo;

import lombok.Data;

import javax.sql.DataSource;
import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

/**
 * 存储sqlMapper信息
 *
 * @author srh
 * @date 2020/02/22
 **/
@Data
public class Configuration implements Serializable {

    /**
     * dataSource
     */
    private DataSource dataSource;

    /**
     * 存储mapper中每条sql对应的信息
     * key: elementId, value: mapperStatement
     */
    private Map<String, MapperStatement> mapperStatementMap;

    public Configuration() {
        mapperStatementMap = new HashMap<>();
    }
}
